package com.fh.os;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @FileName : OrderCApp
 * @Description :
 * @Author : fh
 * @Date : 2020/11/18 9:57
 * @Version : 1.0.0
 */
@SpringBootApplication
@MapperScan("com.fh.os.dao") //mybatis扫描dao
@EnableTransactionManagement  //开启事务管理
@EnableDiscoveryClient  //开启客户端发现功能，目的是向注册中心注册
// 通用注解，任何注册中心都可以使用该注解
//@EnableEurekaClient  //开启erurka客户端功能，只能向eureka注解中心注册
public class OrderCApp {

    public static void main(String[] args) {
        SpringApplication.run(OrderCApp.class,args);
    }
}

